package com.xhwl.data.service.personal;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xhwl.common.pojo.cent.sdata.AccountOrganization;
import com.xhwl.common.pojo.cent.sdata.personnel.StaffOrganization;
import com.xhwl.data.pojo.OrganizationStaffCount;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: luyi
 * @Description:
 * @Date: Create in 15:57 2022/2/8
 */
@RestController
public interface IStaffOrganizationService extends IService<StaffOrganization>{

    List<OrganizationStaffCount> countOrg(List<Integer> organizationIds);

    /**
     * 根据企业ID查找StaffOrganization
     */
    @RequestMapping(value = "/staff-organization-service/find-by-id", method = RequestMethod.POST)
    StaffOrganization findStaffOrganizationByEnterpriseId(@RequestPart Integer enterpriseId);

}
